﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xrm.Sdk.Client;
using Microsoft.Xrm.Sdk;
using Xrm;

namespace CRM.Repositorio
{
    internal class Provider
    {
        private XrmServiceContext _context;

        public XrmServiceContext Context
        {

            get {

                if( _context == null )
                    _context = new XrmServiceContext("Xrm");
                return _context;
            }
        }

        private Provider()
        { }

        private static Provider _instancia;
        public static Provider Me
        { 
            get{
                if (_instancia == null)
                    _instancia = new Provider();

                return _instancia;


            }
        }

    }
}
